<template>
    <div>
      <i class="iconfont icon-icon-test" @click="shuxin()">404 Not Found</i>
      <el-button type="success" plain >刷新</el-button>
    </div>
</template>

<script>
  export default{
      methods:{
        shuxin(){
          const tokenster = window.sessionStorage.getItem("token");
          if(!tokenster){
            this.$router.push({path:"/"});
          }else{
            this.$router.push({path:"/home"});
          }
        }

      }
  }
</script>

<style scoped>
  .el-button{
    display: block;
  }
   div{
     position: absolute;
     top: 50%;
     left: 50%;
   }
</style>
